package black.market.util;

import android.content.ContentResolver;
import android.database.Cursor;
import android.net.Uri;

public class Util {
	/*
	 * return true -> cursor count is 0
	 */
	public static boolean isUriDatabaseCheck(ContentResolver resolver, Uri u) {
		boolean isRes = false;
		Cursor c = resolver.query(u, null, null, null, null);
		if (c != null) {
			if (c.getCount() == 0) {
				isRes = true;
			}
		}
		return isRes;
	}
}
